package com.killer.order.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.killer.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单条目表
 * </p>
 *
 * @author killer
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_order_item")
@ApiModel(value="OrderItem对象", description="订单条目表")
public class OrderItemDTO extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "1级分类")
    @TableField("category_id1")
    private Long categoryId1;

    @ApiModelProperty(value = "2级分类")
    @TableField("category_id2")
    private Long categoryId2;

    @ApiModelProperty(value = "3级分类")
    @TableField("category_id3")
    private Long categoryId3;

    @ApiModelProperty(value = "SPU_ID")
    @TableField("spu_id")
    private Long spuId;

    @ApiModelProperty(value = "SKU_ID")
    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty(value = "商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private Integer price;

    @ApiModelProperty(value = "数量")
    @TableField("num")
    private Integer num;

    @ApiModelProperty(value = "总金额")
    @TableField("money")
    private Integer money;

    @ApiModelProperty(value = "实付金额")
    @TableField("pay_money")
    private Integer payMoney;

    @ApiModelProperty(value = "图片地址")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "重量")
    @TableField("weight")
    private Integer weight;

    @ApiModelProperty("是否被勾选")
    private Boolean checked;

}
